table of contents
GLUTWINDOWSTATUSFUNC(3) | Library Functions Manual (local) | GLUTWINDOWSTATUSFUNC(3) |
NAME¶
glutWindowStatusFunc
—
Sets the window status callback.
LIBRARY¶
OpenGLUT - windowcallback
SYNOPSIS¶
#include
<openglut.h>
void
glutWindowStatusFunc
(void(
*callback )( int state ));
PARAMETERS¶
callback
Client window status hook.
DESCRIPTION¶
When the visibility status of your window changes, OpenGLUT either invokes the
callback
registered by this function or the Visibility
callback---or
neither, if you have not registered either callback.
This differs from glutVisbilityFunc() in that the callback has three states, rather than two, that it may receive. These states are:
-
GLUT_VISIBLE
(every pixel visible)
-
GLUT_FULLY_COVERED
(every pixel obscured)
-
GLUT_HIDDEN
(intermediate)
The callback is bound to the
current window
.
CAVEATS¶
Makes glutVisibilityFunc() obsolete.